# -*- coding: utf-8 -*-

"""
一个练习项目，用Python操作手机上的2048游戏
同时，结合一定的算法，看看能够达到的最大分

copyright: chysun2000@hotmail.com
"""

from GameController import GameController

if __name__ == '__main__':
    game_controller = GameController()
    game_controller.print_help()
    if not game_controller.start_game():
        print('无法开始！！！')
        exit(0)
    else:
        game_controller.show_start_info()
        # game_controller.wait_for_enter_key()

    game_over = game_controller.is_game_over()

    while game_over is not True:
        game_controller.get_status()
        game_controller.next()
        game_over = game_controller.is_game_over()

    game_status = game_controller.get_status()
    print(game_status)
